package com.yc.cloud.cloudindex.web.hystrix;

import com.yc.cloud.cloudindex.bean.Result;
import com.yc.cloud.cloudindex.bean.User;
import com.yc.cloud.cloudindex.web.feign.IUserAction;
import org.springframework.stereotype.Component;

@Component
public class UserActionImpl implements IUserAction {
    @Override
    public String user() {
        return null;
    }

    @Override
    public int add(int a, int b) {
        return 0;
    }

    @Override
    public Result div(int a, int b) {
        return null;
    }

    @Override
    public Result reg(User user) {
        return null;
    }

    @Override
    public double div1(int num) {
        return 0;
    }

    @Override
    public String sendVcode() {
        return "服务降级，验证码已经通过邮件发送给您";
    }
}
